package com.longmao.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.longmao.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.longmao.eduservice.entity.vo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author longmao
 * @since 2022-01-27
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    CourseInfoVo  getCourseInfoById(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfo);

    CoursePublishVo getPublishCourseInfo(String courseId);

    boolean publishCourseById(String courseId);

    boolean deleteCourseById(String courseId);

    List<EduCourse> selectCourse();

    Map<String, Object> pageCourseList(Page<EduCourse> coursePage, CourseFrontVo courseQuery);

    List<EduCourse> selectByTeacherId(String teacherId);

    CourseEditVo getCourseEditInfo(String courseId);
}
